﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
  assembly="JSC.Portal.Web.App" namespace="JSC.Portal.Web.App.Modules.ContactUs.Entities">

  <class name="Contact" table="jscm_contact" lazy="false">

    <!-- start Base on every entity -->
    <id name="Id" column="contactid" unsaved-value="-1">
      <generator class="native">
        <param name="sequence">jscm_contact_contactid_seq</param>
      </generator>
    </id>
    <!-- end Base on every entity -->

    <property name="Title" column="title"/>
    <property name="Name" column="name"/>
    <property name="Subject" column="subject"/>
    <property name="EMail" column="email"/>
    <property name="PhoneNumber" column="phonenumber"/>
    <property name="Message" column="message"/>
    <property name="Moment" column="moment"/>

    <many-to-one name="Section" class="JSC.Portal.Entities.Section, JSC.Portal.Core" column="sectionid" not-null="false" not-found="ignore"/>
  </class>
</hibernate-mapping>